﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using ZQNB.Entity.Dics;

namespace ZQNB.BaseLib.Dics
{
    public class DicHelper
    {
    }


    //[HasConstField]
    //public class DicConst
    //{
    //    [ConstField]
    //    public const string anonymous = "anonymous";
    //    [ConstField]
    //    public const string admin = "admin";
    //    [ConstField]
    //    public const string member = "member";
    //    [ConstField]
    //    public const string lsmhexpert = "lsmhexpert";
    //}

    public interface INbConst
    {
        string ConstType { get; }
    }

    public class NbConstBase : INbConst
    {
        public string ConstType
        {
            get { return this.GetType().FullName; }
        }
    }

    public class DicConst : NbConstBase
    {
        public const string anonymous = "anonymous";
        public const string admin = "admin";
        public const string member = "member";
        public const string lsmhexpert = "lsmhexpert";
    }
}
